package cn.itcast.work.pojo;

import lombok.*;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * * @author: Mao Wanting 2022051602008
 * * @date: 2024/12/3
 * *description:评论类
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Commit {

    private int id;
    //不知为何无法设置为user_id
    @NotNull
    private int userid;
    @NotNull
    private int textid;
    private String content;
    private String timeString;
    private String userPath;
    private User user;
    private Date time;

}
